class Member {
	String loginLdap
	String passwordLdap
	boolean admin
	
	static hasMany=["allNews" : News]
	
	static mappedBy = ["allNews":"member"]
	
	static constraints = {
		loginLdap(blank:false,nullable:false)
		passwordLdap(blank:false,nullable:false,password:true)
		admin(nullable:false)		
	}
	
	public String toString(){
		loginLdap
	}

}
